/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.suspend.local;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.text.TextUtils;

public class b {
    public static void a(Context paramContext, BroadcastReceiver paramBroadcastReceiver) {
        if ((paramContext == null) || (paramBroadcastReceiver == null))
            return;
        try {
            IntentFilter localIntentFilter = new IntentFilter();
            localIntentFilter.addAction("360floatsdk.stat.action");
            paramContext.registerReceiver(paramBroadcastReceiver, localIntentFilter);
        } catch (Exception localException) {
            localException.printStackTrace();
        }
    }

    public static void b(Context paramContext, BroadcastReceiver paramBroadcastReceiver) {
        if ((paramContext == null) || (paramBroadcastReceiver == null))
            return;
        try {
            paramContext.unregisterReceiver(paramBroadcastReceiver);
        } catch (Exception localException) {
            localException.printStackTrace();
        }
    }

    public static void a(String paramString1, String paramString2, Context paramContext) {
        if ((TextUtils.isEmpty(paramString1)) || (TextUtils.isEmpty(paramString2)) || (paramContext == null))
            return;
        Intent localIntent = new Intent("360floatsdk.stat.action");
        localIntent.putExtra("360floatsdk.stat.action.param.pkgname", paramString1);
        localIntent.putExtra("360floatsdk.stat.action.param.event", paramString2);
        paramContext.sendBroadcast(localIntent);
    }
}